//
//  FillBottomView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/27.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FillBottomView.h"

@implementation FillBottomView {
    GLGWButton *leftPhoneBut;
}

- (id)initWithFrame:(CGRect)aFrame inSuperView:(UIView *)aSuperView
{
    if (self = [super initWithFrame:aFrame inSuperView:aSuperView]) {
        self.backgroundColor = [UIColor whiteColor];
        leftPhoneBut = [[GLGWButton alloc] initWithFrame:CGRectMake(0, 0, kWidthProportion_In_iPhoneTriploid(70), self.height) titleLableFont:SYSTEMFONT(10) titleColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        leftPhoneBut.tag = 320;
        leftPhoneBut.title = @"联系卖家";
        [leftPhoneBut setImage:[UIImage imageNamed:@"icon_dianhua"] forState:UIControlStateNormal];
        [leftPhoneBut setImagePositionWithType:SSImagePositionTypeTop spacing:6];
        [leftPhoneBut addTarget:self action:@selector(leftAtion:) forControlEvents:UIControlEventTouchUpInside];
        
        _payMoneyBut = [[GLGWButton alloc] initWithFrame:CGRectMake(kX_With_View(leftPhoneBut, 0), kHeightProportion_In_iPhoneTriploid(10), KScreenWidth - kWidthProportion_In_iPhoneTriploid(85), kHeightProportion_In_iPhoneTriploid(40)) hTitle:@"去付款177149.96元" titleLableFont:SYSTEMFONT(16) titleLableColor:[UIColor whiteColor] theCornerRadius:kHeightProportion_In_iPhoneTriploid(20) backgroundColr:[UIColor colorWithHexString:@"#EC5353"] inSuperView:self];
    }
    return self;
}

- (void)leftAtion:(GLGWButton *)sender
{
    if (self.BlockCallBtn) {
        self.BlockCallBtn();
    }
}

@end
